@font-face {
    font-family: '资源圆体';
    src: url(../font/资源圆体\ Normal.ttf);
}


* {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: '资源圆体';
}

a {
    color: #555 !important;
    text-decoration: none;
}

a:hover {
    color: #000 !important;
}

body {
    background-color: #e9e9e9;
}

.container {
    width: 100vw;
    height: 100vh;
    // background-color: aquamarine;
    position: relative;

    .item {
        width: 100%;
        height: 100%;
        position: absolute;
        overflow: hidden;
        transition: height 0.3s;
        background-color: #e9e9e9;

        .itemBox {
            width: 100%;
            height: 100vh;
            position: absolute;
            display: flex;
            justify-content: center;
            align-items: center;

            .homePage {
                width: 70%;
                min-width: 1200px;

                .homeTitle {
                    font-size: 35px;
                }

                ul {
                    width: 100%;
                    padding: 20px 0;
                    background-color: transparent;
                    // border: 1px solid black;
                    display: flex;
                    justify-content: space-around;
                    align-items: center;
                    flex-wrap: wrap;

                    li {
                        width: 250px;
                        height: 200px;
                        // border: 1px solid #aaa;
                        border-radius: 8px;
                        font-size: 20px;
                        margin: 20px 10px;
                        box-shadow: 11px 11px 21px #cecece, -11px -11px 21px #f2f2f2;
                        cursor: pointer;
                        position: relative;
                        overflow: hidden;
                        display: flex;
                        align-items: center;
                        justify-content: center;

                        &::after {
                            content: '';
                            width: 50px;
                            height: 200%;
                            background-color: #ffffffb3;
                            position: absolute;
                            top: -20%;
                            left: -30px;
                            transform: translateY(-50%) rotateZ(40deg);
                            pointer-events: none;
                        }

                        &:hover::after {
                            animation: move 0.3s linear;
                        }

                        @keyframes move {
                            from {
                                top: -20%;
                                left: -30px;
                            }

                            99% {
                                top: 100%;
                                left: 110%;
                            }

                            to {
                                top: -20%;
                                left: -30px;
                                opacity: 0;
                            }
                        }
                    }

                }
            }


            .itemPage {
                width: 80%;
                height: 90%;
                // background-color: #e9e9e9;
                border: 1px solid red;
                box-sizing: border-box;
                // box-shadow: 8px 8px 16px #cecece, -8px -8px 16px #f2f2f2;

                h2 {
                    height: 35px;
                }

                .itemContent {
                    width: 100%;
                    height: calc(100% - 35px);
                    display: flex;
                    justify-content: space-between;

                    ul {
                        width: 30%;
                        height: 100%;
                        box-sizing: border-box;
                        border: 10px solid transparent;
                        box-shadow: 8px 8px 16px #cecece, -8px -8px 16px #f2f2f2;
                        box-shadow: 4px 4px 6px #cecece, -4px -4px 6px #f2f2f2;
                        // padding: 10px;
                        overflow-y: auto;
                        overflow-x: hidden;
                        border-radius: 8px;
                        
                        /*滚动条整体部分*/
                        &::-webkit-scrollbar {
                            width: 4px;
                        }
                        /* 滚动条滑块 */
                        &::-webkit-scrollbar-thumb {
                            border-radius: 10px;
                            -webkit-box-shadow: inset 0 0 5px #9e9e9e;
                            background: rgba(0, 0, 0, 0.2);
                        }
                        /* 外层轨道 */
                        &::-webkit-scrollbar-track {
                            -webkit-box-shadow: inset 0 0 5px #efefef;
                            border-radius: 0;
                            background: #ddd;
                        }

                        li {
                            margin-bottom: 10px;

                            &>div {
                                width: 95%;
                                display: inline-block;
                                border: 1px solid #9e9e9e;
                                background-color: #e9e9e9;
                                // box-shadow: 4px 4px 6px #cecece, -4px -4px 6px #f2f2f2;
                                border-radius: 5px;
                                padding: 5px;
                                cursor: pointer;
                                
                                h4 {
                                    white-space:nowrap;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    font-weight: lighter;
                                    font-size: 15px;
                                    pointer-events: none;
                                    color: #333;
                                    
                                    span {
                                        font-size: 15px;
                                        margin-left: 15px;
                                        color: #9e9e9e;
                                    }
                                }

                                .hideBox {
                                    margin-top: 3px;
                                    border-top: 1px solid #9e9e9e;
                                    font-size: 15px;
                                    display: flex;
                                    flex-direction: column;
                                    width: 0;
                                    max-height: 0;
                                    transition: all 0.3s ease-in-out;
                                    overflow: hidden;
                                }
                            }

                            &>.show>.hideBox {
                                border-top: 1px solid #9e9e9e;
                                width: 100%;
                                max-height: 200px;
                            }
                        }
                    }

                    .resize{
                        width: 10px;
                        background-color: #ccc;
                        margin: 0 8px;
                    }
                    
                    .preWindow{
                        width: 68%;
                        border: 1px solid red;

                        iframe{
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }
        }
    }

    .item.prev,
    .item.next {
        z-index: 1;
        height: 0;
    }

    .item.prev {
        .itemBox {
            bottom: 0;
            // transform: translateY(10%);
        }
    }

    .item.next {
        bottom: 0;
    }

}

.scroll-up .item.prev {
    height: 100%;
}

.scroll-down .item.next {
    height: 100%;
}

// 过渡动画
/* .scroll-up .item.prev .itemBox{
    transform: translateY(0);
}
.scroll-up .item.cur .itemBox{
    transform: translateY(10%);
}

.scroll-down .item.next .itemBox{
    transform: translateY(0);
}
.scroll-down .item.cur .itemBox{
    transform: translateY(-10%);
} */

// 控制面板
.controlPanel {
    z-index: 10;
    position: fixed;
    top: 50%;
    right: 2%;
    transform: translateY(-50%);

    width: 52px;
    min-height: 200px;
    // background-color: greenyellow;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    button {
        width: 45px;
        height: 45px;
        margin: 10px 0;
        box-shadow: 11px 11px 21px #cecece, -11px -11px 21px #f2f2f2;
        background-color: #e9e9e9;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        transition: 0.3s;

        &:hover {
            color: #333;
            background-color: #e0e0e0;
        }
    }

    ul {
        width: 100%;
        flex: 1;
        z-index: 1;
        border-radius: 50px;
        padding: 15px 5px;
        box-shadow: 11px 11px 21px #cecece, -11px -11px 21px #f2f2f2;
        background-color: #e9e9e9;
        overflow: hidden;
        box-sizing: border-box;

        li {
            height: 50px;
            font-size: 13px;
            border-radius: 8px;
            border-bottom: 1px solid #ccc;
            cursor: pointer;
            padding: 0 3px;
            margin: 3px 0;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
            box-sizing: border-box;

            white-space: nowrap;

            line-height: 50px;
            color: #9e9e9e;
            text-align: center;

            transition: 0.3s;

            &:hover {
                color: #333;
                background-color: #e0e0e0;
            }
        }

        .active {
            height: 70px;
            line-height: normal;
            background-color: #cecece;
            color: #333;
            display: flex;
            white-space: normal;
            justify-content: center;
            align-items: center;
        }
    }

    .mouseLock {
        // border: 1px solid red;
        width: 45px;
        height: 45px;
        margin-top: 15px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        // background-color: #e9e9e9;
        box-shadow: 11px 11px 21px #cecece, -11px -11px 21px #f2f2f2;
        cursor: pointer;
        position: relative;

        i {
            border-radius: 50%;
            font-size: 25px;
            pointer-events: none;
        }

        &:hover {
            color: #333;
            color: #e0e0e0;
            background-color: #e0e0e0;
            background-color: #e65b5b;
        }

        /* &::after {
            content: '';
            height: 100%;
            width: 2px;
            background-color: #9e9e9e;

            position: absolute;
            left: 50%;
            transform: rotateZ(-45deg);
            // display: none;
            height: 0;
            transition: 0.2s;
        } */
    }

    .mLock_Active {
        &::after {
            // display: block;
            height: 100%;

        }

        color: #333;
        color: #e0e0e0;
        background-color: #e0e0e0;
        background-color: #dc7272;
    }
}

/* .test {
    width: 50px;
    padding: 5px;
    background-color: greenyellow;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;

    white-space: nowrap;
} */